package com.cheng.example.book.advise151.chap3;

import lombok.Data;

public class Client49 {
    public static void main(String[] args) {
        System.out.println(new Person("张三"));
    }
}

@Data
class Person {
    private String name;

    public Person(String _name) {
        name = _name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}